import request from '@/utils/request'

export default{
    //俱乐部条件查询分页
    pageList(pageNum,pageSize,searchObj){
        return request({
            url: `/clue/selectCluePage/${pageNum}/${pageSize}`,
            method: 'post',
            //使用json格式传递 写法data：searchObj
            //使用普通格式传递 写法params：searchObj
            data:searchObj
          })
    },
    saveClue(clue){
        return request({
            url: `/clue/insertClue`,
            method: 'post',
            data:clue
          })
    },
    getClueById(id){
        return request({
            url: `/clue/getClueById/${id}`,
            method: 'get',
          })
    },
    updateClue(clue){
        return request({
            url: `/clue/updateClue`,
            method: 'post',
            data:clue
          })
    },
    removeClueId(id){
        return request({
            url: `/clue/deleteClueById/${id}`,
            method: 'delete',
          })

    },
    batchRemove(idList) {
        return request({
          url: `/clue/removeBatch`,
          method: `delete`,
          data: idList
        })
    },

    getClueList(){
      return request({
        url: `clue/selectClueAll`,
        method: `get`
      })
    },

    getLckClue(){
      return request({
        url: `clue/getLckClue`,
        method: `get`
      })
    },

    getLplClue(){
      return request({
        url: `clue/getLplClue`,
        method: `get`
      })
    },

    getOtherZoneClue(){
      return request({
        url: `clue/getOtherZoneClue`,
        method: `get`
      })
    },
}